<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
   这是我搭建的SSH框架，测试成功 <br>
   
    <p><h2>${seccessText}</h2></p>
    <table width="70%" border="1px" align="center" cellpadding="0"cellspacing="0">
        <thead>
            <tr bgcolor="#ff0">
                <th width="25%">账号</th>
                <th width="25%">姓名</th>
                <th width="25%">密码</th>
                <th width="25%">操作</th>
            </tr>
        </thead>
        <tbody>
        <!--var实例参数   items后台传来的数据  begin开始组角标 step跨度1-->
            <c:forEach  items="${userinfo }" var="user" begin="0" step="1">
                <tr>
                    <td>${user.userid}</td>
                    <td>${user.username}</td>
                    <td>${user.password}</td>
                    <td><a href="edit.action?userid=${user.userid}">编辑</a> <a
                        href="delete.action?userid=${user.userid}">删除</a></td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
   
  </body>
</html>
